
<form action="" method="POST">
    <div class="panel panel-primary">
        <div class="panel-heading">Quản Lý Danh Mục</div>
        <div style="padding: 10px;text-align: right;">

            <a href="<?php echo $template->url->getLink('admin/category/add');?>" class="btn btn-primary" type="submit">Thêm Danh Mục</a>
            <button class="btn btn-danger" type="submit">Xóa</button>

        </div>
        <table class="table">
            <thead>
                <tr>
                    <th><input type="checkbox"></th>
                    <th>Tiêu Đề</th>
                    <th>Thao Tác</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($template->get('aDatas') as $oData) : ?>
                    <tr>
                        <th><input type="checkbox" name="val[id][]" value="<?php echo $oData->category_id; ?>"></th>
                        <td><a href="<?php echo $template->url->getLink('category/view/'.$oData->category_id); ?>"><?php echo $oData->title; ?></a></td>
                        <td><a href="<?php echo $template->url->getLink('admin/category/edit/'.$oData->category_id); ?>" class="btn btn-danger">Chỉnh sửa</a></td>
                    </tr>
                    <?php endforeach; ?>
            </tbody>
        </table>
    </div>
</form>